package com.symphony.preperetion;

import java.io.IOException;

public class Overriding {

	
	public static void main(String[] args) throws Exception {
		B b = new B();
		System.out.println(b.method(1));
		
	}

}

class Aa {
	public double method(double d) throws RuntimeException {
		return 0;
	}
}

class B extends Aa {
	@Override
	public double method(double d) throws NullPointerException {
		return 1.0;
	}
}